<script>
import axios from "axios";

export default {
  name: "details",
  data() {
    return {
      message: ""
    }
  },
  methods: {
    async getArticelDetail() {
      const {data} = await axios({
        url: `https://mock.boxuegu.com/mock/3083/articles/${this.$route.query.id}`,
        method: "GET"
      })
      this.message = data.result.content
    }
  },
  created() {
    this.getArticelDetail()
  }
}
</script>

<template>
  <section class="details">
    <van-cell :title="message"></van-cell>
  </section>
</template>

<style scoped lang="less">

</style>